<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>实例方法</title>
	<script type="text/javascript" src="../assets/js/vue.js"></script>
	<script type="text/javascript" src="../assets/js/jquery-3.1.1.min.js"></script>
</head>
<body>
	<h1>实例方法</h1>
	<hr>
	<div id="app">
		{{message}}
	</div>

</body>
<script type="text/javascript">
var app = new Vue({
	el:'#app',
	data:{
		message:'hello world! 111111'
	},
	mounted:function () {
		$("#app").html('im jquery');
	},
	methods:{
		add:function () {
			console.log('调用了构造器内部的add方法');
		}
	}
})

app.add();
</script>
</html>